package com.cskaoyan.demo2.service;

import com.cskaoyan.demo2.bean.MarketAddress;
import com.cskaoyan.demo2.mapper.MarketAddressMapper;
import com.cskaoyan.demo2.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/8 21:57
 */


public class AdminAddressService {

    public List<MarketAddress> selectByParameter(int offset, int limit, String sort, String order) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        MarketAddressMapper mapper = sqlSession.getMapper(MarketAddressMapper.class);
        return mapper.selectByParameter(offset,limit,sort,order);
    }
}
